import {createRouter, createWebHistory} from 'vue-router';

let router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/',
            redirect: '/add'
        },
        {
            path: '/add',
            component: () => import('../views/AddMonView.vue')
        },
        {
          path: '/show',
          component: () => import('../views/ShowMomView.vue')
        }
      ]        
})

export default router; // 导出路由器